
local function ooc( ply, cmd, arg )

	return arg;
	
end
ChatCommand( "//", ooc );
ChatCommand( "/a", ooc );
ChatCommand( "/ooc", ooc );
ChatCommand( "[ooc]", ooc );

local function looc( ply, cmd, arg )

	ply:SayLocalChat( "[L-OOC] " .. arg, 180, "looc", true );
	
end
ChatCommand( "[[", looc );
ChatCommand( ".//", looc );

local function whisper( ply, cmd, arg )

	ply:SayLocalChat( arg, 80, "wicc" );
	
end
ChatCommand( "/w", whisper );
ChatCommand( "/whisper", whisper );

local function yell( ply, cmd, arg )

	ply:SayLocalChat( arg, 400, "yicc" );
	
end
ChatCommand( "/y", yell );
ChatCommand( "/yell", yell );

local function me( ply, cmd, arg )

	ply:SayLocalChat( arg, 180, "ica", nil, true );
	
end
ChatCommand( "/me", me );

local function r( ply, cmd, arg )

	if( ply:HasItem( "radio" ) ) then

		if( tonumber( ply:GetPlayerCurRadioFreq() ) < 0 ) then
		
			ply:PrintBlueMessage( "Choose a radio frequency from your RADIO chat-tab." );
			return;
		
		end

		ply:SayLocalChat( string.sub( arg, 2 ), 180, "ic", nil, false, true );
	
	else
	
		ply:PrintBlueMessage( "You don't have a radio." );
	
	end
	
end
ChatCommand( "/r", r );

local function passout( ply, cmd, arg )

	ply:ConCommand( "rp_passout\n" );
	
end
ChatCommand( "/passout", passout );

local function getup( ply, cmd, arg )

	ply:ConCommand( "rp_getup\n" );
	
end
ChatCommand( "/getup", getup );


local function pm( ply, cmd, arg )

	arg = string.sub( arg, 2 );
	
	local firstspace = string.find( arg, " " );
	local name = string.sub( arg, 1, firstspace - 1 );
	local msg = string.sub( arg, firstspace + 1 );
	
	ply:SendPM( name, msg );
	
end
ChatCommand( "/pm", pm );

local function ay( ply, cmd, arg )

	arg = string.sub( arg, 2 );
	
	ply:ConCommand( "rpa_adminyell " .. arg .. "\n" );
	
end
ChatCommand( "!ay", ay );

local function bring( ply, cmd, arg )

	ply:ConCommand( "rpa_bring " .. arg .. "\n" );
	
end
ChatCommand( "!bring", bring );

local function goto( ply, cmd, arg )

	ply:ConCommand( "rpa_goto " .. arg .. "\n" );
	
end
ChatCommand( "!goto", goto );



